package com.lebang.mapper;

import com.lebang.entity.TaskRewards;
import com.lebang.example.TaskRewardsExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TaskRewardsMapper {
    long countByExample(TaskRewardsExample example);

    int deleteByExample(TaskRewardsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TaskRewards record);

    int insertSelective(TaskRewards record);

    List<TaskRewards> selectByExample(TaskRewardsExample example);

    TaskRewards selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TaskRewards record, @Param("example") TaskRewardsExample example);

    int updateByExample(@Param("record") TaskRewards record, @Param("example") TaskRewardsExample example);

    int updateByPrimaryKeySelective(TaskRewards record);

    int updateByPrimaryKey(TaskRewards record);

    List<TaskRewards> selectActiveTask();

    TaskRewards checkRecord(@Param("id") Integer id, @Param("category") Integer category);

    TaskRewards selectByCategory(@Param("category") Integer mrbz, @Param("success") int success, @Param("memberId") String memberId);

    TaskRewards selectVoByCategory(Integer category);
}